package com.zn.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;

/**
 * @author YinJiaWei
 * @version 2018/10/20 17:49
 * 查询实时行情，每秒钟查询一次
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class HyMdInfo {
    /**id为合约代码（字符串类型）**/
    @JsonProperty("id")
    private String id;
    /**lp为最新价格（Double类型）**/
    @JsonProperty("lp")
    private BigDecimal lp;
    /**bid为买一价（Double类型）**/
    @JsonProperty("bid")
    private BigDecimal bid;
    /**ask为卖一价（Double类型）**/
    @JsonProperty("ask")
    private BigDecimal ask;
    /**vol 是成交量(Int类型)**/
    @JsonProperty("vol")
    private Integer vol;
    /**oi是持仓量(Int类型)**/
    @JsonProperty("oi")
    private Integer oi;
    /**to是行情时间点（Int类型,是从开盘算起的3秒钟时段数）**/
    @JsonProperty("to")
    private Integer to;
    /**time是最后更新时间（字符串类型）**/
    @JsonProperty("time")
    private String time;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public BigDecimal getLp() {
        return lp;
    }

    public void setLp(BigDecimal lp) {
        this.lp = lp;
    }

    public BigDecimal getBid() {
        return bid;
    }

    public void setBid(BigDecimal bid) {
        this.bid = bid;
    }

    public BigDecimal getAsk() {
        return ask;
    }

    public void setAsk(BigDecimal ask) {
        this.ask = ask;
    }

    public Integer getVol() {
        return vol;
    }

    public void setVol(Integer vol) {
        this.vol = vol;
    }

    public Integer getOi() {
        return oi;
    }

    public void setOi(Integer oi) {
        this.oi = oi;
    }

    public Integer getTo() {
        return to;
    }

    public void setTo(Integer to) {
        this.to = to;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
